package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Goodtype implements Serializable {
    private String gtid;

    private String gtname;

    private String gtdesc;

    private Integer gtstate;

    private static final long serialVersionUID = 1L;

    public String getGtid() {
        return gtid;
    }

    public void setGtid(String gtid) {
        this.gtid = gtid;
    }

    public String getGtname() {
        return gtname;
    }

    public void setGtname(String gtname) {
        this.gtname = gtname;
    }

    public String getGtdesc() {
        return gtdesc;
    }

    public void setGtdesc(String gtdesc) {
        this.gtdesc = gtdesc;
    }

    public Integer getGtstate() {
        return gtstate;
    }

    public void setGtstate(Integer gtstate) {
        this.gtstate = gtstate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Goodtype other = (Goodtype) that;
        return (this.getGtid() == null ? other.getGtid() == null : this.getGtid().equals(other.getGtid()))
            && (this.getGtname() == null ? other.getGtname() == null : this.getGtname().equals(other.getGtname()))
            && (this.getGtdesc() == null ? other.getGtdesc() == null : this.getGtdesc().equals(other.getGtdesc()))
            && (this.getGtstate() == null ? other.getGtstate() == null : this.getGtstate().equals(other.getGtstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGtid() == null) ? 0 : getGtid().hashCode());
        result = prime * result + ((getGtname() == null) ? 0 : getGtname().hashCode());
        result = prime * result + ((getGtdesc() == null) ? 0 : getGtdesc().hashCode());
        result = prime * result + ((getGtstate() == null) ? 0 : getGtstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", gtid=").append(gtid);
        sb.append(", gtname=").append(gtname);
        sb.append(", gtdesc=").append(gtdesc);
        sb.append(", gtstate=").append(gtstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}